<?php /* Smarty version 2.6.26, created on 2018-07-25 23:40:45
         compiled from D:%5Citemstudy%5Citem/home%5Ctemplates/default/seller/goods.html */ ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><?php echo $this->_tpl_vars['row']['title']; ?>
</title> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="<?php echo $this->_tpl_vars['__PUBLIC__']; ?>
css/common_uqcms.css">
<link rel="stylesheet" type="text/css" href="<?php echo $this->_tpl_vars['__APP__']; ?>
public/css/public.css"> 
<link rel="stylesheet" type="text/css" href="<?php echo $this->_tpl_vars['__APP__']; ?>
public/css/help.css">
<script type="text/javascript" src="<?php echo $this->_tpl_vars['__PUBLIC__']; ?>
js/jquery.min.js"></script>
<link rel="stylesheet" type="text/css" href="<?php echo $this->_tpl_vars['__PUBLIC__']; ?>
bootstrap/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="<?php echo $this->_tpl_vars['__PUBLIC__']; ?>
layer/layer.css">
<script type="text/javascript" src="<?php echo $this->_tpl_vars['__PUBLIC__']; ?>
bootstrap/bootstrap.min.js"></script>
<script type="text/javascript" src="<?php echo $this->_tpl_vars['__PUBLIC__']; ?>
layer/layer.js"></script>
</head>
<body>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "default/header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<style>
	.dliu{
		margin:0 auto;
		width: 360px;
	}
	.table>tbody>tr>th{
		width: 160px;
		text-align: center;
	}
	.table>tbody>tr>td{
		text-align: left;
		padding-left: 10px;
	}
	.huise{
		background-color: #666;
	}
	.huise:hover{
		background-color: #666;
	}
</style>
<div class="main_bar">
	<div class="main">
		<div class="hcontent">
			<div class="rcon">
				<div class="dliu">
					<table class="table table-bordered">
						<tbody>
						<tr>
							<th style="">标题</th>
							<td><?php echo $this->_tpl_vars['detail']['title']; ?>
</td>
						</tr>
						<tr>
							<th>分类</th>
							<td><?php echo $this->_tpl_vars['detail']['name']; ?>
</td>
						</tr>
						<?php $_from = $this->_tpl_vars['detail']['goods_guige']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['guige']):
?>
						<tr>
							<?php $_from = $this->_tpl_vars['guige']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['k'] => $this->_tpl_vars['gui']):
?>
							<?php if ($this->_tpl_vars['k'] == '0'): ?>
							<th><?php echo $this->_tpl_vars['gui']; ?>
</th>
							<?php elseif ($this->_tpl_vars['k'] == '1'): ?>
							<td><?php echo $this->_tpl_vars['gui']; ?>
</td>
							<?php endif; ?>
							<?php endforeach; endif; unset($_from); ?>
						</tr>
						<?php endforeach; endif; unset($_from); ?>
						<tr>
							<th>发布人</th>
							<td><?php echo $this->_tpl_vars['detail']['nick']; ?>
</td>
						</tr>
						<tr>
							<th>发布时间</th>
							<td><?php echo $this->_tpl_vars['detail']['addtime']; ?>
</td>
						</tr>
						<tr>
							<th>竞标状态</th>
							<td><?php if ($this->_tpl_vars['detail']['tbzt'] == '0'): ?>竞标进行中<?php else: ?>竞标已完成<?php endif; ?></td>
						</tr>
						<tr>
							<th>竞标人数</th>
							<td><?php echo $this->_tpl_vars['detail']['tbs']; ?>
</td>
						</tr>
						<tr>
							<th>备注</th>
							<td><?php echo $this->_tpl_vars['detail']['bz']; ?>
</td>
						</tr>
						<tr id="tb_btn">
							<th colspan="2"><a href="javascript:;" class="btn btn-danger <?php if ($this->_tpl_vars['detail']['tbzt'] == '1'): ?>huise<?php else: ?>toubiao<?php endif; ?>" style="width:330px ">投标</a></th>
						</tr>
						</tbody>
					</table>
					<form action="?m=seller&a=add_form" method="post" id="form" style="display: none;">
						<div class="form-group">
							<label for="remark">备注</label>
							<input type="text" class="form-control" id="remark" name="remark" placeholder="请填写你的优势">
							</textarea>
						</div>
						<div class="form-group">
							<label for="price">报价</label>
							<input type="text" class="form-control" id="price" name="price" placeholder="报价">
						</div>
						<input type="hidden" name="tb_id" value="<?php echo $this->_tpl_vars['detail']['id']; ?>
"/>
						<button type="submit" class="btn btn-danger" onclick="return yanzheng()" style="width:330px">投标</button>
					</form>
				</div>
			</div> 
		</div>
		
	</div>
</div>
<script type="text/javascript">
    $(document).ready(function(){
        $(".toubiao").click(function () {
            $("#tb_btn").hide();
			$("#form").show();
        });
	});
    function yanzheng() {
        var remark = $("#remark").val();
        var price = $("#price").val();
        if(remark == ''){
            layer.msg('备注不能为空',{time:2000});
            return false;
		}
        if(price == ''){
            layer.msg('报价不能为空',{time:2000});
            return false;
        }
    }
</script>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "default/footer.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?> 